package com.tfy.dao;

import com.tfy.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> getUserList();
    List<User> getUserLikeList(String name);

    User getUserById(int id);

    //插入一个用户
    int addUser(User user);
    int addUser2(Map<String, Object> map);

    //修改
    int changeUser(User user);

    //修改
    int delete(int id);
}
